package com.blb.examsystem.dao;

import com.blb.common.entity.Question;


import java.util.List;

public interface QuestionDao {
    //数据总数
    int selectCount();

    //分页
    List<Question> selectLimit(int start, int length);

    //按标题查询的总数
    int selectCountByContent(String content);

    //按标题查询的分页
    List<Question> selectLimitByContent(String content, int start, int length);

    //添加
    int insertQuestion(Question question);

    //按id查找
    List<Question> selectById(int id);

    //更新
    int updateQuestion(Question question);

    //删除
    int deleteQuestion(int id);
}
